﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using PhoenixCrabV6.Engine.Images;
using PhoenixCrabV6.Engine.Screens;
using PhoenixCrabV6.Engine.IO;
using PhoenixCrabV6.Engine.IO.Interface;


namespace XMLGeneration
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            ScreenManager sm = new ScreenManager {DisplayResolution = {X = 640, Y = 480}};

            DataContractManager<ScreenManager> dcm = new DataContractManager<ScreenManager>();

            dcm.Save("ScreenManager.xml", sm);


            SplashScreen ss = new SplashScreen
                              {
                                  Image = new Image()
                                          {
                                              Path = "SplashScreen/Base Male Samurai",
                                              Position = new Vector2(250, 100),
                                              Alpha = 0.5f,
                                              Scale = new Vector2(2.0f, 2.0f)
                                          }
                              };

            DataContractManager<SplashScreen> ssdcm = new DataContractManager<SplashScreen>();
            ssdcm.Save("SplashScreen.xml", ss);


            TitleScreen ts = new TitleScreen();
            {
                InterfaceElement ie = new InterfaceElement();
                
                {
                    MultiImage mi = new MultiImage();
                    mi.Position = new Vector2(500,400);
                    mi.PathList = new List<string>();
                    mi.PathList.Add("TitleScreen/NewGame.0");              
                    mi.PathList.Add("TitleScreen/NewGame.1");              
                    mi.PathList.Add("TitleScreen/NewGame.2");              
                  


                    ie.Images = mi;
                }
                
                ts.StartButton = ie;
                //ts.LoadContent();
            }
                                                                          


            DataContractManager<TitleScreen> tsdcm = new DataContractManager<TitleScreen>();
            tsdcm.Save("TitleScreen.xml",ts);
        }
    }
}